/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package data.xml_persistence.model;

/**
 *
 * @author ded_end
 */
public class Flight {

    private String id;
    private String code;
    private String departure_time;
    private String arrival_time;
    private double cost;
    private double length;
    private AirlineName airlineName;
    private AirplaneName airplaneName;
    private RouteName routeName;

    public Flight() {
    }

    public Flight(String id, String code, String departure_time, String arrival_time, double cost, double length, AirlineName airlineName, AirplaneName airplaneName, RouteName routeName) {
        this.id = id;
        this.code = code;
        this.departure_time = departure_time;
        this.arrival_time = arrival_time;
        this.cost = cost;
        this.length = length;
        this.airlineName = airlineName;
        this.airplaneName = airplaneName;
        this.routeName = routeName;
    }

    public AirlineName getAirlineName() {
        return airlineName;
    }

    public void setAirlineName(AirlineName airlineName) {
        this.airlineName = airlineName;
    }

    public AirplaneName getAirplaneName() {
        return airplaneName;
    }

    public void setAirplaneName(AirplaneName airplaneName) {
        this.airplaneName = airplaneName;
    }

    public String getArrival_time() {
        return arrival_time;
    }

    public void setArrival_time(String arrival_time) {
        this.arrival_time = arrival_time;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public String getDeparture_time() {
        return departure_time;
    }

    public void setDeparture_time(String departure_time) {
        this.departure_time = departure_time;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public RouteName getRoute() {
        return routeName;
    }

    public void setRoute(RouteName routeName) {
        this.routeName = routeName;
    }

    @Override
    public String toString() {
        return "Flight{" + "id=" + id + ", code=" + code + ", departure_time=" + departure_time + ", arrival_time=" + arrival_time + ", cost=" + cost + ", length=" + length + ", airlineName=" + airlineName + ", airplaneName=" + airplaneName + ", routeName=" + routeName + '}';
    }
}
